@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
  min-width: 1200px;
  .ant-pro-sider-menu-logo, .ant-layout-sider, .ant-menu, .ant-menu-submenu-title {
    background: #2A2F37 !important;
  }

  .ant-menu ul {
    background: #1F2329 !important;
  }
}

.ant-pro-sider-logo {
  padding: 16px 12px !important;

  h1 {
    margin: 0 !important;
  }
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}

tr.ant-table-expanded-row .ant-descriptions-view table {
  width: 100%;
}

.ant-descriptions-bordered .ant-descriptions-view>table {
  table-layout: fixed !important;
}

.disabled {
  color: rgba(0, 0, 0, 0.25);
}

.ant-upload.ant-upload-select-picture-card {
  width: 100% !important;
  height: 100% !important;
}

.textEllipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a,
a:hover {
  color: rgb(24, 144, 255);
}

.ant-popconfirm {
  .ant-popover-inner-content {
    max-width: 300px;
    word-break: break-all;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 30px;
}

h1 {
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 0;
}

.uppy-Root {
  .uppy-Dashboard-inner {
    border: 1px dashed #d9d9d9;

    .uppy-Dashboard-AddFiles {
      border: none;
      margin: 60px;

      .uppy-Dashboard-AddFiles-title {
        font-size: 16px;
        color: #666;

        button {
          border: none;
          outline: none;
          background: rgba(255, 255, 255, 0);
        }
      }
    }

    .uppy-Dashboard-dropFilesHereHint {
      background-position: 50% 30%;
      padding-top: 70px;
    }

    .uppy-StatusBar-actions {
      button {
        background: rgba(0, 0, 0, 0);
        border: none;
        outline: 0;
        cursor: pointer;
        color: #666;
      }

      button.uppy-StatusBar-actionBtn--upload.uppy-c-btn-primary {
        color: #fff;
        background: @primary-color;
        border-color: @primary-color;
      }

      button.uppy-StatusBar-actionBtn--upload.uppy-c-btn-primary:hover,
      button.uppy-StatusBar-actionBtn--upload.uppy-c-btn-primary:active {
        background: @primary-5;
        border-color: @primary-5;
      }
    }
  }

  .uppy-size--md .uppy-Dashboard-Item-action--remove {
    width: 21px !important;
    height: 21px !important;
  }

  // .uppy-Dashboard-AddFiles-info {
  //   display: none !important;
  // }
}
.dangerText {
  color: #ff4d4f;
}

.dangerText:hover, .dangerText:focus {
  color: #ff7875,
}

.disabledText {
  color: rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
}

.disabledText:hover, .disabledText:active {
  color: rgba(0, 0, 0, 0.25);
}
